package com.zhuangjie.shop.enums;

/**
 * 优惠配送费类型
 *
 */
public enum ReduceValueType {
    // 1:按金额 2:按折扣 3:活动特征值

    BY_AMOUNT((byte) 1, "按金额"),
    BY_DISCOUNT((byte) 2, "按折扣"),
    ACTIVITY_FEATURE((byte) 3, "活动特征值");


    private byte code;
    private String name;

    ReduceValueType(byte code, String name) {
        this.code = code;
        this.name = name;
    }

    public byte getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
